package mysql

import (
	"WebFacade/log"
	"errors"
)

var (
	ErrInternalData = errors.New("redis internal data error")
)

func mysqlErrorLog(params map[string]interface{}, err error) error {
	invoker := log.CreateLocationChainReverse(1)
	return log.ErrorLogWithLocation(log.ErrorDBMysql, invoker, params, err)
}

func mysqlFatalLog(params map[string]interface{}, err error) error {
	invoker := log.CreateLocationChainReverse(1)
	return log.FatalLogWithLocation(log.ErrorDBMysql, invoker, params, err)
}
